package com.xxl.job.admin;

import com.xxl.job.admin.constance.CommInstance;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

/**
 * @author mis wu
 */
@SpringBootApplication
//@EnableFeignClients
public class XxlJobAdminApplication {

	private static final Logger logger = LoggerFactory.getLogger(XxlJobAdminApplication.class);

	public static void main(String[] args) {

		ConfigurableApplicationContext context = SpringApplication.run(XxlJobAdminApplication.class, args);
		Environment environment = context.getBean(Environment.class);
		logger.info("波波星球 ===> 【定时任务】服务启动成功,port:" + environment.getProperty(CommInstance.SERVER_PORT) + "==> serverName:" + environment.getProperty(CommInstance.SERVER_NAME));

	}

}